package com.gopay.common.user.manager.impl;

import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import com.gopay.common.domain.user.CauthOperatorInfo;
import com.gopay.common.user.dao.OprInfoQueryDAO;
import com.gopay.common.user.manager.OprInfoQueryManager;
@Service("oprInfoQueryManager")
public class OprInfoQueryManagerImpl implements OprInfoQueryManager {
	
	private OprInfoQueryDAO oprInfoQueryDao;
	
	@Override
	@Transactional(propagation = Propagation.REQUIRED, rollbackFor = { Exception.class })
	public void updateOpr(List<CauthOperatorInfo> list) {
		for (CauthOperatorInfo operInfo : list) {
			oprInfoQueryDao.update(operInfo);
		}
	}
	
	@Resource(name="oprInfoQueryDao")
	public void setOprInfoQueryDao(OprInfoQueryDAO oprInfoQueryDao) {
		this.oprInfoQueryDao = oprInfoQueryDao;
	}

	@Override
	public CauthOperatorInfo get(String id) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public List<CauthOperatorInfo> get(Map<Object, Object> paraMap) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public List<CauthOperatorInfo> getAll() {
		// TODO Auto-generated method stub
		return null;
	}
}
